.reportFormPage {
  background-color: #c0c2cc;
  padding-bottom: 6px;
  padding-top: 20px;

  .report-dom,
  #domid {
    box-shadow: rgb(160, 160, 160) 0px 0px 10px 3px;
    position: relative;
    width: 210mm;
    height: 297mm;
    // padding: 20px 40px 20px 40px;
    padding: 15mm 15mm 15mm 25mm;
    margin: 0 auto;
    /* background: #b3d6fa; */
    background: #f9f8f8;
    font-size: 12px;
    color: #000;

    //横向模板
    &.horizontal {
      width: 297mm !important;
      height: 210mm !important;
      padding: 20mm 15mm 15mm 15mm;
    }

    .table-border {
      border: 1px solid #000;
      border-width: 0px 2px 2px 1px;
    }

    .top-table {
      border-width: 2px 0px 0px 0px;

      td {
        border: 1px solid #000;
        border-width: 1px 0px 0px 1px;
        // border-bottom: 2px;
        // border-right: 0px;
      }
    }

    .middle-table {
      border-width: 0px 0px 0px 0px;

      td {
        border: 1px solid #000;
        border-width: 0px 0px 1px 1px;
        // border-right: 0px;
        // border-bottom: 0px;
      }
    }

    .bottom-table {
      border-width: 0px 0px 0px 0px;

      td {
        border: 1px solid #000;
        border-width: 0px 0px 0px 1px;
      }
    }

    .bottom-border {
      td {
        border-bottom: 2px solid #000;
      }
    }

    .bottom-border-fine {
      td {
        border-bottom: 1px solid #000;
      }
    }

    .transparent {
      margin-top: 4px;

      td {
        background-color: #eeeeee00;
        border: none;
      }
    }

    table {
      width: 100%;
      font-family: "宋体";
      font-size: 12px;
      color: #000;
      text-align: center;
      border-collapse: collapse;
      border: 0px solid #000;
    }

    td {
      border: 1px solid #000;
      background-color: #eeeeee;
      padding: 0;
    }

    .flex-center {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      height: 100%;
    }

    .height100 {
      height: 100%;
    }

    .width100 {
      width: 100%;
    }

    .el-input,
    .el-textarea,
    .el-input-number {
      height: 100%;
    }

    .is-disabled {
      input {
        background-color: #eeeeee !important;
        border-color: #eeeeee;
        color: black !important;

        &:focus {
          border-color: #eeeeee;
          outline: none;
        }
      }
    }

    .hide-icon {
      .el-input__icon {
        display: none;
      }
    }

    .hide-icon2 {
      .el-icon-arrow-up {
        display: none;
      }
    }

    .pointer {
      input {
        cursor: pointer;

        &:focus {
          border-color: #ffffff;
          outline: none;
        }
      }
    }

    input {
      border: none;
      border-radius: 0px;
      font-size: 12px;
      font-family: "宋体";
      min-height: 18px;
      height: 100%;
      text-align: center;
      vertical-align: middle;
      padding: 0;
      color: black;
      background-color: #ffffff;
      border: 2px solid #ffffff;

      &:focus {
        border-color: #1890ff;
        outline: none;
      }
    }

    .zyyqStyle input {
      height: 30px !important;
    }

    .syrqStyle i {
      line-height: 20px !important;
    }

    textarea {
      height: 100%;
      border-radius: 0px;
      // text-align: center;
      font-size: 12px;
      overflow: hidden;
      font-family: "宋体";
      border-collapse: collapse;
      border-style: hidden;
      margin-top: 0px;
      resize: none;
      padding: 0;
      color: black;
      background-color: #ffffff;
      border: 2px solid #ffffff;

      &:focus {
        border-color: #1890ff;
        outline: none;
      }
    }

    .mark {
      position: relative;

      &::before {
        content: "";
        position: absolute;
        top: 0px;
        right: 0px;
        border-style: solid;
        border-width: 5px 0px 0 5px;
        border-color: #333 transparent transparent transparent;
      }
    }

    .pageNumBox {
      font-family: "宋体";
      font-size: 9pt;
      color: black;
      text-align: right;
      margin-bottom: 4px;
    }

    .topTwoBox {
      width: 100%;
      display: flex;
      align-items: center;
      margin-bottom: 10px;

      .centerName {
        margin-left: 70px;
        margin-right: 5px;
        width: calc(100% - 145px);
        font-weight: bold;
        font-size: 16pt;
        color: #000;
        line-height: normal;
        font-style: normal;
        font-family: "宋体";
        text-align: center;
      }

      .codeText {
        font-family: "宋体";
        font-size: 9pt;
        color: black;
        text-align: right;
        width: 70px;
      }
    }

    .threeTopBox {
      font-family: "宋体";
      font-size: 12px;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;

      .left-border {
        width: calc(100% - 250px);
        display: flex;
        align-items: center;
      }

      .right-border {
        width: 250px;
        text-align: right;

        .placeholder {
          min-width: 150px !important;
        }
      }

      .box-title {
        min-width: 88px;
        width: 88px;
      }

      .threeItem1 {
        width: 100px;
      }

      .threeItem2 {
        width: calc((100% - 155px) / 2 - 1.5%);
        margin-right: 1.5%;
      }

      .threeItem22 {
        width: 48%;
        margin-right: 1.5%;
      }

      .threeItem3 {
        /*   width: 34%;*/
        width: 24%;
        text-align: right;
      }

      .threeItem33 {
        /*   width: 34%;*/
        width: 37%;
        text-align: right;
      }
    }

    .textarea-container {
      background-color: #ffffff;
      border: 1px solid #ccc;
      /* 模拟textarea的边框 */
      min-height: 100px;
      /* 你可以根据需要调整最小高度 */
      padding: 4px;
      /* 模拟textarea的内边距 */
      display: flex;
      flex-direction: column;
      justify-content: center;

      .contenteditable {
        border: 1px solid #ccc;
        background-color: #ffffff;
        outline: none;
        /* 移除默认焦点轮廓 */
        white-space: pre-wrap;

        /* 保留空格和换行 */
        &:focus {
          border-color: #1890ff;
          outline: none;
        }
      }
    }
  }
}

.code-input {
  width: 175px;

  input {
    // text-align: right;
  }
}

.print-box {
  .reportFormPage {
    .report-dom {
      box-shadow: none !important;
      background: #fff !important;

      td {
        background: #fff !important;
      }

      .mark::before {
        border-width: 0 !important;
      }

      .is-disabled input {
        background-color: #fff !important;
        border-color: #fff !important;
      }
    }
  }
}

.printImg {
  width: calc(210mm);
  height: calc(297mm);
}

// 占位符
.placeholder {
  min-width: 66px;
  display: inline-block;
}

.placeholder-min {
  min-width: 20px;
  display: inline-block;
}

.placeholder-long {
  min-width: 175px;
  display: inline-block;
}

// 样品信息
.specimen-border {
  text-align: left;
  padding: 0 10px !important;
}

.pdf {
  .horizontal-border {
    padding: 180px 0;
  }

  .horizontal {
    transform: rotate(-90deg);
    transform-origin: initial;
  }

  input,
  textarea {
    border: 0px solid #ffffff !important;
  }

  .el-input,
  .el-textarea {
    height: calc(100% - 4px) !important;
    width: calc(100% - 4px) !important;
    margin: 2px;
  }

  .el-input {
    max-height: 20px;
  }

  .textarea-span {
    display: block;
    height: calc(100% - 4px);
    width: calc(100% - 4px);
    padding: 2px;
    text-align: left;
  }
}

.el-textarea.is-disabled .el-textarea__inner {
  background-color: #eeeeee;
  color: #000;
}